import { createRouter, createWebHistory } from 'vue-router'

const routes = [
  {
    path: '/',
    redirect: '/UserManage'
  },
  {
    path: '/dashboard',
    name: 'Dashboard',
    component: () => import('../views/Dashboard.vue')
  },
  
  {
    path: '/tables',
    name: 'Tables',
    component: () => import('../views/Tables.vue')
  },
  {
    path: '/employees',
    name: 'Employees',
    component: () => import('../views/Employees.vue')
  }
  ,
  {
    path: '/userManage',
    name: 'UserManage',
    component: () => import('../views/UserManage.vue')
  }
]

const router = createRouter({
  history: createWebHistory(),
  routes
})

export default router    